import indexC from "../controllers";
import adminListC from "../controllers/adminList";
import advListC from "../controllers/advList";
import loginV from "../controllers/login";
import noFound from "../controllers/noFound";
//  控制侧边栏
const menuRoutes = [
	{
		url:"/index/adminList",
		title:"管理员列表",
		render:adminListC()
	},{
		url:"/index/advList",
		title:"广告列表",
		render:advListC()
	}
]

export default [
	{
		url:"/index",
		render:indexC(menuRoutes)
	},
	...menuRoutes,
	{
		url:"/login",
		render:loginV()
	},{
		url:"*",
		render:noFound()
	}
]